<% if flash[:notice] %>
<div id="flash_notice"><%=h flash[:notice] %></div>
<%end%>
<div class="orders_list">
  <h2>Orders in process</h2>
  <ul>
    <% for order in @processing_orders %>
    <li>
      <%= link_to h(order.id), orders_path(:id => order.id) %>
    </li>
    <% end %>
  </ul>

 <h2>Completed orders</h2>
  <ul>
    <% for order in @completed_orders %>
    <li>
      <%= link_to h(order.id), orders_path(:id => order.id) %>
    </li>
    <% end %>
  </ul>
 <h2>Cancelled orders</h2>
  <ul>
    <% for order in @cancelled_orders %>
    <li>
      <%= link_to h(order.id), orders_path(:id => order.id) %>
    </li>
    <% end %>
  </ul>
 
 
  <p class="add"><%= link_to "New order", new_order_path %></p>
</div>











